package com.yunxin.core.infra.persistence.mapper.page;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunxin.core.infra.persistence.entity.page.PageDO;
import com.yunxin.core.infra.persistence.entity.page.query.condition.PagePageCondition;
import com.yunxin.core.infra.persistence.entity.page.query.result.PageListResult;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author zero°
 * @since 2023-05-25
 */
@DS("core")
@Mapper
public interface PageExtendMapper extends PageMapper {

    /**
     * 获取页面下拉列表
     * @return List<PageListResult>
     */
    List<PageListResult> listPage();

    /**
     * 分页查询页面列表总条数
     * @param condition condition
     * @return int
     */
    long countPagePageQuery(PagePageCondition condition);

    /**
     * 分页查询页面列表
     * @param condition condition
     * @return List<Page>
     */
    List<PageDO> pagePageQuery(PagePageCondition condition);
}
